home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / Sample Code / CALib & You… / Source / CALib / Headers / CAMacHeaders.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-12-07  |  4.8 KB  |  193 lines  |  [TEXT/MPS ]

  1. /*
  2.     CAMacHeaders.c
  3.     
  4.     A file to include lots of Mac Toolbox headers that we might need.
  5.  
  6. */
  7.  
  8. /*
  9.  *    Required for c-style toolbox glue function: c2pstr and p2cstr
  10.  *    the inverse operation (pointers_in_A0) is performed at the end ...
  11.  */
  12.  
  13. #ifndef powerc
  14.  #pragma pointers_in_D0                            
  15. #endif
  16.  
  17. // To allow the use of ToolBox calls which have now become obsolete on PowerPC, but
  18. // which are still needed for System 6 applications, we need to #define OBSOLETE.  If
  19. // your application will never use these calls then you can comment out this #define.
  20. // NB: This is only for 68K ...
  21.  
  22. #if !defined(powerc) && !defined(OBSOLETE)
  23.  #define OBSOLETE    1
  24. #endif
  25.  
  26. //    These definitions are commonly used but not in Apple's headers. We define
  27. //    them here so we can use the Apple headers without modification.
  28.  
  29. #define PtoCstr        p2cstr
  30. #define CtoPstr        c2pstr
  31. #define PtoCString    p2cstr
  32. #define CtoPString    c2pstr
  33.  
  34. #define topLeft(r)    (((Point *) &(r))[0])
  35. #define botRight(r)    (((Point *) &(r))[1])
  36.  
  37. #define TRUE        true
  38. #define FALSE        false
  39.  
  40. #ifndef powerc
  41.  #include <MixedMode.h>
  42.  long GetCurrentA5(void)
  43.   ONEWORDINLINE(0x200D);
  44. #endif
  45.  
  46.     #include <QDFixM.h>        // RB 5/13 (As instructed by Apple)
  47.     
  48. // Apple #include files
  49.  
  50. //    #include <ADSP.h>
  51.     #include <AEObjects.h>
  52.     #include <AEPackObject.h>
  53.     #include <AERegistry.h>            // DHN: 2-8-95 uncommented
  54.     #include <AEUserTermTypes.h>
  55. //    #include <AIFF.h>
  56.     #include <Aliases.h>
  57.     #include <AppleEvents.h>
  58. //    #include <AppleGuide.h>
  59.     #include <AppleScript.h>
  60. //    #include <AppleTalk.h>
  61. //    #include <ASDebugging.h>
  62.     #include <ASRegistry.h>
  63. //    #include <Balloons.h>
  64. //    #include <CMApplication.h>
  65. //    #include <CMComponent.h>
  66. //    #include <CodeFragments.h>
  67. //    #include <ColorPicker.h>        // DHN: 2-1-95 Commented out.
  68. //    #include <CommResources.h>
  69. //    #include <Components.h>
  70.     #include <ConditionalMacros.h>
  71. //    #include <Connections.h>
  72. //    #include <ConnectionTools.h>
  73.     #include <Controls.h>
  74. //    #include <ControlStrip.h>
  75. //    #include <CRMSerialDevices.h>
  76. //    #include <CTBUtilities.h>
  77. //    #include <CursorCtl.h>
  78. //    #include <CursorDevices.h>
  79. //    #include <DatabaseAccess.h>
  80.     #include <Desk.h>
  81. //    #include <DeskBus.h>
  82.     #include <Devices.h>
  83.     #include <Dialogs.h>
  84. //    #include <Dictionary.h>
  85. //    #include <DisAsmLookup.h>
  86. //    #include <Disassembler.h>
  87.     #include <DiskInit.h>
  88. //    #include <Disks.h>
  89. //    #include <Displays.h>
  90. //    #include <Drag.h>
  91. //    #include <Editions.h>
  92. //    #include <ENET.h>
  93. //    #include <EPPC.h>
  94. //    #include <ErrMgr.h>
  95.     #include <Errors.h>
  96.     #include <Events.h>
  97. //    #include <fenv.h>
  98.     #include <Files.h>
  99. //    #include <FileTransfers.h>
  100. //    #include <FileTransferTools.h>
  101.     #include <FileTypesAndCreators.h>
  102.     #include <Finder.h>                // DHN: 2-8-95 uncommented
  103. //    #include <FixMath.h>
  104.     #include <Folders.h>
  105.     #include <Fonts.h>
  106. //    #include <fp.h>
  107.     #include <FragLoad.h>            // DHN: 2-8-95 uncommented
  108. //    #include <FSM.h>
  109.     #include <Gestalt.h>
  110.     #include <GestaltEqu.h>
  111. //    #include <HyperXCmd.h>
  112.     #include <Icons.h>                // DHN: 2-8-95 uncommented
  113. //    #include <ImageCodec.h>
  114. //    #include <ImageCompression.h>
  115. //    #include <IntlResources.h>
  116. //    #include <Language.h>
  117.     #include <Lists.h>
  118.     #include <LowMem.h>
  119. //    #include <MachineExceptions.h>
  120. //    #include <MacTCP.h>
  121. //    #include <MediaHandlers.h>
  122.     #include <Memory.h>
  123.     #include <Menus.h>
  124. //    #include <MIDI.h>
  125.     #include <MixedMode.h>
  126. //    #include <Movies.h>
  127. //    #include <MoviesFormat.h>
  128. //    #include <Notification.h>
  129. //    #include <OSA.h>
  130. //    #include <OSAComp.h>
  131. //    #include <OSAGeneric.h>
  132.     #include <OSEvents.h>
  133.     #include <OSUtils.h>
  134.     #include <Packages.h>
  135. //    #include <Palettes.h>
  136. //    #include <Picker.h>
  137. //    #include <PictUtil.h>
  138. //    #include <PictUtils.h>
  139.     #include <PLStringFuncs.h>
  140. //    #include <Power.h>
  141. //    #include <PPCToolbox.h>
  142.     #include <Printing.h>
  143.     #include <Processes.h>
  144. //    #include <QDOffscreen.h>
  145.     #include <Quickdraw.h>
  146. //    #include <QuickdrawText.h>
  147. //    #include <QuickTimeComponents.h>
  148.     #include <Resources.h>
  149. //    #include <Retrace.h>
  150. //    #include <ROMDefs.h>
  151. #ifndef powerc
  152. //    #include <SANE.h>
  153. #endif
  154.     #include <Scrap.h>
  155. //    #include <Script.h>
  156. //    #include <SCSI.h>
  157.     #include <SegLoad.h>
  158. //    #include <Serial.h>
  159. //    #include <ShutDown.h>
  160. //    #include <Slots.h>
  161. //    #include <Sound.h>
  162. //    #include <SoundComponents.h>
  163. //    #include <SoundInput.h>
  164. //    #include <Speech.h>
  165.     #include <StandardFile.h>
  166. //    #include <Start.h>
  167.     #include <Strings.h>
  168. //    #include <Terminals.h>
  169. //    #include <TerminalTools.h>
  170.     #include <TextEdit.h>
  171. //    #include <TextServices.h>
  172.     #include <TextUtils.h>
  173. //    #include <Threads.h>
  174. //    #include <Timer.h>
  175.     #include <ToolUtils.h>
  176. //    #include <Translation.h>
  177. //    #include <TranslationExtensions.h>
  178.     #include <Traps.h>
  179. //    #include <TSMTE.h>
  180.     #include <Types.h>
  181. //    #include <Unmangler.h>
  182. //    #include <Video.h>
  183.     #include <Windows.h>
  184. //    #include <WorldScript.h>
  185.  
  186.  
  187. // required for c-style toolbox glue function: c2pstr and p2cstr
  188. // (match the inverse operation at the start of the file ...
  189.  
  190. #ifndef powerc
  191.  #pragma pointers_in_A0
  192. #endif
  193.